#include <stdio.h>

void squeeze(char s1[], char s2[]);

int main()
{
    char s1[] = "worldwide", s2[] = "wide";

    printf("%s\n", s1); // worldwide

    squeeze(s1, s2);
    printf("%s\n", s1); // orl

    return 0;
}

void squeeze(char s1[], char s2[])
{
    int i1, i2, j;

    for (i2 = 0; s2[i2] != '\0'; i2++)
    {
        for (i1 = j = 0; s1[i1] != '\0'; i1++)
        {
            if (s1[i1] != s2[i2])
            {
                s1[j++] = s1[i1];
            }
        }
        s1[j] = '\0';
    }
}
